package com.cqs.learning.classload;

import java.util.function.Predicate;

/**
 * @author lixw
 * @date 2020/2/21 8:53
 */
public class ClassLoadEntity implements Predicate<Boolean> {

    //静态字段
    public static String version = "1.0";
    public final static String VERSION = "1.0";
    //实例字段
    private int cnt;

    static {
        System.out.println("执行了static区域代码");
        version = "2.0";
    }

    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        int a = 1;
        int b = a + 1;
        System.out.println("计算结果:" + b);
    }

    /**
     *  实例方法
     * @param aBoolean
     * @return
     */
    @Override
    public boolean test(Boolean aBoolean) {
        return aBoolean;
    }
}
